<% content_tag :div, :class => 'bigwrapper' do%>
<%=h flash[:error]%>
	<% content_tag :div, :class => 'header' do -%>
		<%= content_tag :img, nil, :src => '/images/icons/icons_63.png', :class => 'hleft' %>
		<%= content_tag :span, 'New Contact',:class => 'hleft' %>
		<% content_tag :span, :class => 'headertext' do -%>
			<%= content_tag :strong, 'Welcome to Sparktools!' -%>
			<%= content_tag :p, "Student organizations use the contact application to keep track of persons important to the organization. This application acts like a sophisticated Rolodex. Starred (<span class='red'>*</span>) items are required. " -%>
		<% end -%>
	<% end -%>
	<% form_tag :action => 'new' do -%>
		<%= hidden_field :contact, :group_id, :value => @group_id %>
		<%= hidden_field :contact_entry, :status, :value => "Unopened"%>
		<% content_tag :div, :class => 'mainbox' do %>
			<%= content_tag :h3, '1. Name'%>
			<%= content_tag :p, "First name (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_field(:contact_entry, :fname)) %>
			<%= content_tag :p, "Last name (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_field(:contact_entry, :lname)) %>
		<% end -%>
		<% content_tag :div, :class => 'mainbox' do %>
			<%= content_tag :h3, '2. Contact details'%>
			<%= content_tag :p, "Contact title (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_field(:contact_entry, :title)) %>
			<%= content_tag :p, "Relationship (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_field(:contact_entry, :relationship)) %>
			<%= content_tag :p, "Description (<span class='red'>*</span>): " %>
			<%= content_tag(:div,text_area(:contact_entry, :note, {:size=>"70x4"})) %>
		<% end -%>
		<% content_tag :div, :class => 'mainbox' do -%>
				<%= content_tag :h3, '3. Create'%>
				<%= content_tag :p, "Once everything is filled out, click save to create this contact." %>
				<%= submit_tag 'Create Contact' %>
		<% end -%>
	<% end %>
<% end -%>